<h1>Listing dingdans</h1>

<table>
  <tr>
    <th>Shouhuoren</th>
    <th>Dizhi</th>
    <th>Youbian</th>
    <th>Tel</th>
    <th>Peisong</th>
    <th>Zhifu</th>
    <th>Youhu</th>
  </tr>

<% @dingdans.each do |dingdan| %>
  <tr>
    <td><%=h dingdan.shouhuoren %></td>
    <td><%=h dingdan.dizhi %></td>
    <td><%=h dingdan.youbian %></td>
    <td><%=h dingdan.tel %></td>
    <td><%=h dingdan.peisong %></td>
    <td><%=h dingdan.zhifu %></td>
    <td><%=h dingdan.youhu_id %></td>
    <td><%= link_to 'Show', dingdan %></td>
    <td><%= link_to 'Edit', edit_dingdan_path(dingdan) %></td>
    <td><%= link_to 'Destroy', dingdan, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New dingdan', new_dingdan_path %>